<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>书库 - 小说转有声书APP</title>
    <link rel="stylesheet" href="css/style.css">
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <style>
        .tab-container {
            display: flex;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 1rem;
        }
        
        .tab {
            padding: 0.5rem 1rem;
            cursor: pointer;
            font-weight: 500;
            color: var(--text-secondary);
            position: relative;
        }
        
        .tab.active {
            color: var(--primary-color);
        }
        
        .tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--primary-color);
        }
        
        .filter-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .filter-dropdown {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem;
            border: 1px solid var(--border-color);
            border-radius: 0.25rem;
            cursor: pointer;
        }
        
        .library-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 1rem;
        }
    </style>
</head>
<body>
    <!-- 顶部导航栏 -->
    <header class="navbar">
        <div class="flex items-center gap-2">
            <span class="icon">menu</span>
            <h1>书库</h1>
        </div>
        <div class="flex items-center gap-2">
            <span class="icon">search</span>
            <span class="icon">notifications</span>
        </div>
    </header>
    
    <div class="container" style="margin-bottom: 60px;">
        <!-- 搜索栏 -->
        <div class="card">
            <div class="flex items-center gap-2">
                <span class="icon">search</span>
                <input type="text" class="input" placeholder="搜索我的书库...">
            </div>
        </div>
        
        <!-- 标签页导航 -->
        <div class="tab-container mt-4">
            <div class="tab active">已生成有声书</div>
            <div class="tab">已导入小说</div>
            <div class="tab">收藏</div>
        </div>
        
        <!-- 筛选栏 -->
        <div class="filter-bar">
            <div class="filter-dropdown">
                <span>分类</span>
                <span class="icon">arrow_drop_down</span>
            </div>
            <div class="filter-dropdown">
                <span>排序</span>
                <span class="icon">arrow_drop_down</span>
            </div>
            <div class="filter-dropdown">
                <span>阅读状态</span>
                <span class="icon">arrow_drop_down</span>
            </div>
        </div>
        
        <!-- 已生成有声书列表 -->
        <div class="library-grid">
            <div class="book-card">
                <img src="https://via.placeholder.com/150x225?text=封面1" alt="书籍封面" class="book-cover">
                <div class="book-info">
                    <h3 class="book-title">三体</h3>
                    <p class="book-author">刘慈欣</p>
                    <div class="badge my-2">已听42%</div>
                </div>
            </div>
            
            <div class="book-card">
                <img src="https://via.placeholder.com/150x225?text=封面2" alt="书籍封面" class="book-cover">
                <div class="book-info">
                    <h3 class="book-title">活着</h3>
                    <p class="book-author">余华</p>
                    <div class="badge my-2">已听75%</div>
                </div>
            </div>
            
            <div class="book-card">
                <img src="https://via.placeholder.com/150x225?text=封面3" alt="书籍封面" class="book-cover">
                <div class="book-info">
                    <h3 class="book-title">白夜行</h3>
                    <p class="book-author">东野圭吾</p>
                    <div class="badge my-2">已听12%</div>
                </div>
            </div>
            
            <div class="book-card">
                <img src="https://via.placeholder.com/150x225?text=封面4" alt="书籍封面" class="book-cover">
                <div class="book-info">
                    <h3 class="book-title">平凡的世界</h3>
                    <p class="book-author">路遥</p>
                    <div class="badge my-2">已听56%</div>
                </div>
            </div>
            
            <div class="book-card">
                <img src="https://via.placeholder.com/150x225?text=封面5" alt="书籍封面" class="book-cover">
                <div class="book-info">
                    <h3 class="book-title">百年孤独</h3>
                    <p class="book-author">加西亚·马尔克斯</p>
                    <div class="badge my-2">已听8%</div>
                </div>
            </div>
            
            <div class="book-card">
                <img src="https://via.placeholder.com/150x225?text=封面6" alt="书籍封面" class="book-cover">
                <div class="book-info">
                    <h3 class="book-title">红楼梦</h3>
                    <p class="book-author">曹雪芹</p>
                    <div class="badge my-2">已听23%</div>
                </div>
            </div>
            
            <div class="book-card">
                <img src="https://via.placeholder.com/150x225?text=封面7" alt="书籍封面" class="book-cover">
                <div class="book-info">
                    <h3 class="book-title">人类简史</h3>
                    <p class="book-author">尤瓦尔·赫拉利</p>
                    <div class="badge my-2">已听67%</div>
                </div>
            </div>
            
            <div class="book-card">
                <img src="https://via.placeholder.com/150x225?text=封面8" alt="书籍封面" class="book-cover">
                <div class="book-info">
                    <h3 class="book-title">围城</h3>
                    <p class="book-author">钱钟书</p>
                    <div class="badge my-2">已听31%</div>
                </div>
            </div>
        </div>
        
        <!-- 分页导航 -->
        <div class="flex justify-center gap-2 mt-4">
            <button class="btn btn-secondary">上一页</button>
            <button class="btn btn-primary">1</button>
            <button class="btn btn-secondary">2</button>
            <button class="btn btn-secondary">3</button>
            <button class="btn btn-secondary">下一页</button>
        </div>
    </div>
    
    <!-- 底部导航 -->
    <nav class="bottom-nav">
        <a href="home.html" class="bottom-nav-item">
            <span class="material-icons bottom-nav-icon">home</span>
            <span>首页</span>
        </a>
        <a href="library.html" class="bottom-nav-item active">
            <span class="material-icons bottom-nav-icon">library_books</span>
            <span>书库</span>
        </a>
        <a href="import.html" class="bottom-nav-item">
            <span class="material-icons bottom-nav-icon">add_circle</span>
            <span>导入</span>
        </a>
        <a href="player.html" class="bottom-nav-item">
            <span class="material-icons bottom-nav-icon">headphones</span>
            <span>播放</span>
        </a>
        <a href="settings.html" class="bottom-nav-item">
            <span class="material-icons bottom-nav-icon">settings</span>
            <span>设置</span>
        </a>
    </nav>
</body>
</html> 